package org.issaclu.springbootmybatis.user.dto;

import org.issaclu.springbootmybatis.user.enums.Sex;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

public class UserDetail {

    private long id;
    private String userId;
    private Sex sex;
    private Date birthday;
    private int level;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Sex getSex() {
        return sex;
    }

    public void setSex(Sex sex) {
        this.sex = sex;
    }

    // 有这个get方法，就可以在mapper中认为有 sexCode 这个属性
    public Sex getSexCode() {
        return this.sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "UserDetail{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", sex=" + sex +
                ", birthday=" + birthday +
                ", level=" + level +
                '}';
    }
}
